/**
 * 作者: wgx
 * 日期: 2024-10-15 14:06:44
 * 备注: 服饰配置表
 */
package com.motu.monstercity.server.game.commondata.suit;

import io.vertx.core.json.JsonObject;

public class SuitModel {
    protected int suitId; // suit_id
    protected int firstLevel; // 初始等级
    protected int star; // 服饰星级
    protected String unlockItem; // 解锁所需道具
    protected String upgradeItem; // 升级所需道具
    protected int maxLevel; // 服饰等级上限
    protected String skillId; // 技能id (关联skill表中的skll_id字段)
    protected int ownerId; // 物主id (伙伴Id,秘书id等)

    public SuitModel() {
    }

    public SuitModel(JsonObject obj) {
        suitId = obj.containsKey("suit_id") ? obj.getInteger("suit_id") : 0;
        firstLevel = obj.containsKey("first_level") ? obj.getInteger("first_level") : 0;
        star = obj.containsKey("star") ? obj.getInteger("star") : 0;
        unlockItem = obj.containsKey("unlock_item") ? obj.getString("unlock_item") : "";
        upgradeItem = obj.containsKey("upgrade_item") ? obj.getString("upgrade_item") : "";
        maxLevel = obj.containsKey("max_level") ? obj.getInteger("max_level") : 0;
        skillId = obj.containsKey("skill_id") ? obj.getString("skill_id") : "";
        ownerId = obj.containsKey("owner_id") ? obj.getInteger("owner_id") : 0;
    }

    public int getSuitId() {
        return suitId;
    }

    public int getFirstLevel() {
        return firstLevel;
    }

    public int getStar() {
        return star;
    }

    public String getUnlockItem() {
        return unlockItem;
    }

    public String getUpgradeItem() {
        return upgradeItem;
    }

    public int getMaxLevel() {
        return maxLevel;
    }

    public String getSkillId() {
        return skillId;
    }

    public int getOwnerId() {
        return ownerId;
    }

}
